<template>
  <div class="student">
    <h1>学生详情</h1>
    <p>学生ID: {{ studentId }}</p>
  </div>
</template>

<script>
export default {
  computed: {
    studentId() {
      return this.$route.params.id;
    }
  }
}
</script>